package edu.nf.takeoutdemo.commons.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

/**
 *
 * @author zjl
 * @date 2025/10/29
 */
@Aspect
public class DishServiceAspect {

//    @Pointcut("execution(* edu.nf.takeoutdemo.service.impl.DishServiceImpl.*(..))")
    public void pointcut() {

    }
    /**
     * 后置通知
     * @param jp 连接点信息
     * @param returnVal 连接点方法的返回值
     */
//    @AfterReturning(value = "pointcut()", returning = "returnVal")
//    public Object after(JoinPoint jp, String returnVal) {
//        System.out.println("后置通知，返回值：" + returnVal);
//        return returnVal;
//    }
}
